const http = uni.$u.http

// 显示首页顶部banner图
// export const getTopBanner = (data) => http.get('/banner/list/topBanner', data)
// // 新增商品
// export const postGoodAdd = (params, config = {}) => http.post('/good/add', params, config)
// // 删除用户
// export const deleteUser = (params, config = {}) => http.delete('/user/delete', params, config)

// post请求，获取菜单
// export const postMenu = (params, config = {}) => http.post('/ebapi/public_api/index', params, config)

// get请求，获取菜单，注意：get请求的配置等，都在第二个参数中，详见前面解释
export const getList = () => http.get('/index.php/api/article/lists')

// export const getList = (params, config = {}) => http.get('/index.php/api/article/lists', params, config)